package com.hr.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hr.entity.AoaProcessList;
import com.hr.service.AoaProcessListService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (AoaProcessList)表控制层
 *
 * @author makejava
 * @since 2022-06-23 21:08:33
 */
@RestController
@RequestMapping("aoaProcessList")
public class AoaProcessListController  {
    /**
     * 服务对象
     */
    @Resource
    private AoaProcessListService aoaProcessListService;

    /**
     *  查询(可根据 分页 ,条件)
     * @param aoaProcessList
     * @param page
     * @return
     */
    @GetMapping("/queryList")
    public Page<AoaProcessList> queryList(AoaProcessList aoaProcessList,Page<AoaProcessList> page){
        page = aoaProcessListService.queryList(aoaProcessList, page);
        System.out.println("page"+page);
        return page;
    }
}

